package com.sxt.entity;

import java.util.HashSet;
import java.util.Set;



/**
 * Teacher entity. @author MyEclipse Persistence Tools
 */

@SuppressWarnings("serial")
public class Teacher  implements java.io.Serializable {


    // Fields    

     private Integer id;
     private String name;
     
     private Set<Student> students = new HashSet<Student>(0);


    // Constructors

    /** default constructor */
    public Teacher() {
    }

    
    /** full constructor */
    public Teacher(String name) {
        this.name = name;
    }

   
    // Property accessors

    public Integer getId() {
        return this.id;
    }
    
    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return this.name;
    }
    
    public void setName(String name) {
        this.name = name;
    }


	public Set<Student> getStudents() {
		return students;
	}


	public void setStudents(Set<Student> students) {
		this.students = students;
	}
   
    
}